FISH_PROFIT_REPORT = {
    'group_by': 'fishing_bet_item_fish_type.keyword',
    'interval_type_list': ['day', 'hour'],
    'target_event_id': ['fishing_bet_item'],
    'values': [
        {
            "value_id": "bet_amount",
            "target_value": "fishing_bet_item_bet_amount",
            "value_name": "玩法消耗",
            "filter": [],
            "value_type": "float",
            "adjust_amount": True,
        },
        {
            "value_id": "award_amount",
            "target_value": "fishing_bet_item_award_amount",
            "value_name": "玩法奖励",
            "filter": [],
            "value_type": "float",
            "adjust_amount": True,
        },
        {
            "value_id": "profit",
            "value_name": "抽水率",
            "value_expr": "(bet_amount - award_amount)/bet_amount",
            "is_percentage": True,
            "fmt": lambda v: float("%.2f" % (v * 100)),
        }
    ]
}
